package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the COFOPRI1 database table.
 * 
 */
@Entity
@Table(name="COFOPRI1")
public class Cofopri1 implements Serializable {
	private static final long serialVersionUID = 1L;
	private String codPredOrig;
	private String codPredNew;
	private Date fecProcSnrp;
	private Date fecProcSnrp2;
	private String fgProcSnrp;
	private String fgProcSnrp2;
	private String numPartida;
	private String oficRegId;
	private BigDecimal refnumPart;
	private String regPubId;
	private String siglas;

    public Cofopri1() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="COD_PRED_ORIG", unique=true, nullable=false, length=9)
	public String getCodPredOrig() {
		return this.codPredOrig;
	}

	public void setCodPredOrig(String codPredOrig) {
		this.codPredOrig = codPredOrig;
	}


	@Column(name="COD_PRED_NEW", length=10)
	public String getCodPredNew() {
		return this.codPredNew;
	}

	public void setCodPredNew(String codPredNew) {
		this.codPredNew = codPredNew;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="FEC_PROC_SNRP")
	public Date getFecProcSnrp() {
		return this.fecProcSnrp;
	}

	public void setFecProcSnrp(Date fecProcSnrp) {
		this.fecProcSnrp = fecProcSnrp;
	}


    @Temporal( TemporalType.DATE)
	@Column(name="FEC_PROC_SNRP2")
	public Date getFecProcSnrp2() {
		return this.fecProcSnrp2;
	}

	public void setFecProcSnrp2(Date fecProcSnrp2) {
		this.fecProcSnrp2 = fecProcSnrp2;
	}


	@Column(name="FG_PROC_SNRP", length=1)
	public String getFgProcSnrp() {
		return this.fgProcSnrp;
	}

	public void setFgProcSnrp(String fgProcSnrp) {
		this.fgProcSnrp = fgProcSnrp;
	}


	@Column(name="FG_PROC_SNRP2", length=1)
	public String getFgProcSnrp2() {
		return this.fgProcSnrp2;
	}

	public void setFgProcSnrp2(String fgProcSnrp2) {
		this.fgProcSnrp2 = fgProcSnrp2;
	}


	@Column(name="NUM_PARTIDA", length=8)
	public String getNumPartida() {
		return this.numPartida;
	}

	public void setNumPartida(String numPartida) {
		this.numPartida = numPartida;
	}


	@Column(name="OFIC_REG_ID", length=2)
	public String getOficRegId() {
		return this.oficRegId;
	}

	public void setOficRegId(String oficRegId) {
		this.oficRegId = oficRegId;
	}


	@Column(name="REFNUM_PART")
	public BigDecimal getRefnumPart() {
		return this.refnumPart;
	}

	public void setRefnumPart(BigDecimal refnumPart) {
		this.refnumPart = refnumPart;
	}


	@Column(name="REG_PUB_ID", length=2)
	public String getRegPubId() {
		return this.regPubId;
	}

	public void setRegPubId(String regPubId) {
		this.regPubId = regPubId;
	}


	@Column(length=5)
	public String getSiglas() {
		return this.siglas;
	}

	public void setSiglas(String siglas) {
		this.siglas = siglas;
	}

}